package mygame;

import com.jme3.scene.shape.*;
import com.jme3.scene.*;

public class cylinder
{
    private float radius, height, xPos,yPos,zPos;
    public cylinder()
    {
        
    }
    public cylinder(float radius,float height,float xPos,float yPos,float zPos)
    {
        
        this.radius = radius;
        this.height = height;
        this.xPos = xPos;
        this.yPos = yPos;
        this.zPos = zPos;
        
    }
    public Spatial createCylinder()
    {
        Cylinder testCyl = new Cylinder(100, 50, radius,height,true);
        Spatial gCyl = new Geometry("cyl", testCyl);
        
        gCyl.setLocalTranslation(xPos,yPos,zPos);
        
        return gCyl
    }
}